package io.mya.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.mya.modules.sys.dao.NoticeSettingDao;
import io.mya.modules.sys.entity.NoticeSettingEntity;
import io.mya.modules.sys.service.NoticeSettingService;


@Service("noticeSettingService")
public class NoticeSettingServiceImpl implements NoticeSettingService {

	@Autowired
	private NoticeSettingDao noticeSettingDao;

	@Override
	public List<NoticeSettingEntity> query(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return noticeSettingDao.queryList(params);
	}

	@Override
	public NoticeSettingEntity queryById(Integer id) {
		// TODO Auto-generated method stub
		return noticeSettingDao.queryObject(id);
	}
	@Override
	public void update(NoticeSettingEntity noticeSetting) {
		// TODO Auto-generated method stub
		noticeSettingDao.update(noticeSetting);
	}
	@Override
	public void save(NoticeSettingEntity noticeSetting) {
		// TODO Auto-generated method stub
		noticeSettingDao.save(noticeSetting);
	}
	@Override
	public void deleteBatch(Integer[] ids) {
		// TODO Auto-generated method stub
		
		noticeSettingDao.deleteBatch(ids);
	}

	@Override
	public List<NoticeSettingEntity> getPlatNotice(Long userId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<NoticeSettingEntity> queryAll() {
		// TODO Auto-generated method stub
		return noticeSettingDao.queryAll();
	}

	
}
